<?php $this->load->view('layout/header'); ?>
    <div class="container-fluid">
        <div class="row-fluid">
            <div class="span12">
                <h3 class="page-title">快递查询
                    <small> 快递详情</small>
                </h3>
                <?php echo breadcrumb(array('旅游订单管理', 'expressrecord/index' => '快递查询', '快递详情')); ?>
            </div>
        </div>
        <?php echo execute_alert_message() ?>
        <div class="row-fluid">
            <div class="span12">
                <div class="portlet box green">
                    <div class="portlet-title">
                        <div class="caption">
                            <i class="icon-picture"></i>
                            <span>物流：<?php echo $row->name ?></span>　　
                            <span>运单号：<?php echo $row->number;?></span>
                            <span>状态：<?php echo expressState()[$row->state] ?></span>
                        </div>
                        <div class="tools">
                            <a class="collapse" href="javascript:;"></a>
                            <a class="remove" href="javascript:;"></a>
                        </div>
                    </div>
                    <div class="portlet-body">
                        <table class="table table-condensed table-hover">
                            <tr>
                                <th>时间</th>
                                <th>地点和跟踪进度</th>
                            </tr>
                            <?php $detail = json_decode($row->context); ?>
                            <?php if(!empty($detail)):?>
                                <?php foreach($detail as $value): ?>
                                    <tr>
                                        <td><?php echo $value->time; ?></td>
                                        <td><?php echo $value->context; ?></td>
                                    </tr>
                                <?php endforeach; ?>
                            <?php endif; ?>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="form-actions">
        <a href="<?php echo base_url('expressrecord/index') ?>">
            <button class="btn" type="button">返回</button>
        </a>
    </div>
<?php $this->load->view('layout/footer'); ?>